<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:sf="http://www.springframework.org/tags/faces"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:sec="http://www.springframework.org/security/tags"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <body>
	    <ui:composition>
		    <div id="header">
		      <div>
		          <div class="logo">
		              <h:graphicImage library="images" name="logo.gif" />
		          </div>
		         <sec:authorize ifAnyGranted="ROLE_SUPERVISOR, ROLE_USER">
		          	<div style="float: right; padding-left: 30px; ">		          
				    	You are login as <font style="font-weight: bold">${currentUser.principal}</font>
				  	</div>
				 </sec:authorize>        
			          <div class="themes">
			          <h:form id="themeForm">
						<p:commandLink id="themeButton" value="Change Theme: #{themesSelected.theme}"
							onclick="themeMenu.show()"/>
			              <p:menu widgetVar="themeMenu" position="dynamic" context="'themeForm:themeButton','tl','bl'" styleClass="themeMenu">
			                   <p:submenu>
			                       <p:menuitem value="Aristo" ajax="false">
			                           <f:setPropertyActionListener value="aristo" target="#{themesSelected.theme}" />
			                       </p:menuitem>
			                       <p:menuitem value="Bluesky" ajax="false">
			                           <f:setPropertyActionListener value="bluesky" target="#{themesSelected.theme}" />
			                       </p:menuitem>
			                       <p:menuitem value="Redmond" ajax="false">
                                       <f:setPropertyActionListener value="redmond" target="#{themesSelected.theme}" />
                                   </p:menuitem>
                                   <!--<p:menuitem value="Start" ajax="false">
                                       <f:setPropertyActionListener value="start" target="#{themesSelected.theme}" />
                                   </p:menuitem>		                       
			                   --></p:submenu>               
	                       </p:menu>                                                   
	                    </h:form>
	                 </div>                
		          <div class="clear"></div>
		      </div>
			      
		      <div>
		          <div class="fleft"></div>
			      <div class="padding1">		          
				     <h1>TeleData Web </h1>
				  </div>
			  </div>			  				
			</div>
	    </ui:composition>
    </body>
</html>


